<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/6/11
  Time: 21:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>角色列表</title>

    <style type="text/css">
        a {
            text-decoration: none
        }
    </style>
</head>
<body>

<table border="1" width="100%" style="text-align: center;">

    <caption> <h1>角色列表</h1> </caption>

    <tr>
        <td> 索引编号 </td>
        <td> 角色编号 </td>
        <td> 角色名称 </td>
        <td> 角色描述 </td>
        <td> 角色操作 </td>
    </tr>

    <c:forEach items="${requestScope.roleList}" var="role" varStatus="so">
        <tr>
            <td> ${so.count} </td>
            <td> ${role.r_id} </td>
            <td> ${role.r_name} </td>
            <td> ${role.r_description} </td>

            <td>
                <a href="?act=toEditRole&id=${role.r_id}"> 修改 </a> |
                <a href="?act= ? &id=${role.r_id}"> 删除 </a>
            </td>
        </tr>
    </c:forEach>

    <tr>
        <td colspan="5">
            <strong>
                <a href="?act=toAddRole"> 添加角色 </a>
            </strong>
        </td>
    </tr>

</table>



</body>
</html>
